<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo C('SITE_INFO.name');?></title>
<script type="text/javascript" src="__PUBLIC__/scripts/jquery-1.7.2.min.js"></script>
<link href="__PUBLIC__/Catalog/css/common.css" rel="stylesheet" type="text/css" />


<link href="__PUBLIC__/Catalog/css/addAdress.css" rel="stylesheet" type="text/css" />
<style>
.bottom {
	border-bottom:1px solid #ccc;
}
</style>
</head>
<body>
<div class="main">
   <div class="title">
         <div class="title1">
             <a href="manage.html" id="back"> < </a>新增地址
         </div>
   </div>
   <div class="reg">
        <div class="reg2">
        	<form action="<?php echo U('Order/selectaddress');?>" method="post">
        	<input type="hidden" name="orderid" value="<?php echo ($orderid); ?>"/>
        		<table>
        			<?php if(is_array($address)): foreach($address as $key=>$vo): ?><tr>
        					<td>姓名:<?php echo ($vo["lastname"]); ?></td>
        					<td>电话：<?php echo ($vo["phone"]); ?></td>
        				</tr>
        				<tr>
        					<td colspan="2"><?php echo ($vo["address_1"]); echo ($vo["address_2"]); ?></td>
        				</tr>
        				<tr>
        					<td colspan="2" style="text-align:right" class="bottom"><input type="radio" name="address_id" value="<?php echo ($vo["address_id"]); ?>" <?php if($vo["default_flag"] == 1): ?>checked="checked"<?php endif; ?> /></td>
        				</tr><?php endforeach; endif; ?>
        			<tr>
        				<td colspan="2" class="bottom"><a class="xiadan" href="<?php echo U('Membership/address');?>?back=selectaddress&orderid=<?php echo ($orderid); ?>">增加地址</a></td>
        			</tr>
        			<tr>
        				<td colspan="2"><input type="submit" name="tijiao" class="xiadan" value="提交订单" /></td>
        			</tr>
        		</table>
        		
        	</form>
            
        </div>
   </div>
</div>
<script>
$(function(){
    if('<?php echo ($msg); ?>'!='0'){
        alert('<?php echo ($msg); ?>');
    }
});
</script>
<div class="index-foot">
    <div class="index-foot2">
            <ul>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Index/index');?>"><img src="__PUBLIC__/Catalog/images/house.png" /></a></dd>
                      <dd><a href="<?php echo U('Index/index');?>">首页</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Products/index');?>"><img src="__PUBLIC__/Catalog/images/cate1.png" /></a></dd>
                      <dd><a href="<?php echo U('Products/index');?>">商品</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd><a href="<?php echo U('Mproducts/publish');?>"><img src="__PUBLIC__/Catalog/images/jia.png"style=" width:50px; height:50px;" /></a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/leaveword');?>"><img src="__PUBLIC__/Catalog/images/<?php if($count > 0): ?>message-hot.png<?php else: ?>message.png<?php endif; ?>" /></a></dd>
                      <dd><a href="<?php echo U('Membership/leaveword');?>">信息</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>"><img src="__PUBLIC__/Catalog/images/men.png" /></a></dd>
                      <dd><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>">我的</a></dd>
                  </dl>
              </li>
            </ul>       
    </div>
</div>
</body>
</html>